package org.xxx.test.utils;

import org.xxx.test.entity.ExpressParcel;
import org.xxx.test.entity.PushCouponAndRuleToSPDTO;
import org.xxx.test.entity.PushCouponDeliveryToSpDTO;
import org.xxx.test.entity.dto.InviteInfoDTO;
import org.xxx.test.entity.dto.OrderInfoEntityDTO;
import org.xxx.test.entity.dto.PrizeInfoDTO;
import org.xxx.test.vo.TestVO;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class ParamsUtils {
    public static Map<String, String> _0001() {
        Map<String, String> paramMap = new HashMap<>();
        paramMap.put("name", "hello");
        return paramMap;
    }

    public static TestVO _0002() {
        TestVO vo = new TestVO();
        vo.setAge(12);
        vo.setName("nihao");
        return vo;
    }

    public static void _0901() {
    }

    /*"0902-数据同步[优惠券信息]"*/
    public static PushCouponAndRuleToSPDTO _0902() {
        PushCouponAndRuleToSPDTO dto = new PushCouponAndRuleToSPDTO();
        dto.setId(12345293410817L);
        dto.setCode("3FLGQ543");
        dto.setStatus(5);
        dto.setName("立减10000");
        dto.setDisplayName("立减100");
        dto.setDescription("立减100");
        dto.setFaceValue("0");
        dto.setPeriodLimitValue(0);
        dto.setTotalLimitValue(0);
        dto.setValidPeriodType(1);
        dto.setStartTime("2021-04-12 00:00");
        dto.setEndTime("2021-10-31 00:00");
        dto.setValidDays(1);
        dto.setValidLongTermFlag(0);
        dto.setReceiveStartTime("2021-04-12 00:00:00");
        dto.setReceiveEndTime("2021-07-31 00:00:00");
        dto.setReceiveLongTermFlag(0);
        dto.setSingleCodeFlag(0);
        dto.setNeedRedeemFlag(1);
        dto.setRedeemCode("123");
        dto.setSceneType(0);

        return dto;
    }

    public static List<PushCouponDeliveryToSpDTO> _0903() {

        List<PushCouponDeliveryToSpDTO> list = new ArrayList<>();

        PushCouponDeliveryToSpDTO dto = new PushCouponDeliveryToSpDTO();
        dto.setId("111");
        dto.setCouponId(null);
        dto.setCode("111");
        dto.setMemberId("111");
        dto.setMemberNick(null);
        dto.setStartTime("2021-04-12 00:00");
        dto.setEndTime("2021-04-12 00:00");
        dto.setDeliveryTime("2021-04-12 00:00");
        dto.setDeliveryFlag(null);
        dto.setUseTime(null);
        dto.setUseFlag(null);
        dto.setCodeRecordId(null);
        dto.setCreateTime("2021-04-12 00:00");
        dto.setUpdateTime("2021-04-12 00:00");
        dto.setDeleted(null);
        PushCouponDeliveryToSpDTO dto2 = new PushCouponDeliveryToSpDTO();
        dto2.setId("12399293410817");
        dto2.setCouponId("12345293410817");
        dto2.setCode("3FLGQ543");
        dto2.setMemberId("123123");
        dto2.setMemberNick("王小明3");
        dto2.setStartTime("2021-04-12 00:00");
        dto2.setEndTime("2021-04-12 00:00");
        dto2.setDeliveryTime("2021-04-12 00:00");
        dto2.setDeliveryFlag(0);
        dto2.setUseTime("2021-04-12 00:00");
        dto2.setUseFlag(0);
        dto2.setCodeRecordId("9");
        dto2.setCreateTime("2021-04-12 00:00");
        dto2.setUpdateTime("2021-04-12 00:00");
        dto2.setDeleted(0);
        PushCouponDeliveryToSpDTO dto3 = new PushCouponDeliveryToSpDTO();
        dto2.setId("12399293410990");
        dto2.setCouponId("12345293410817");
        dto2.setCode("3FLGQ543");
        dto2.setMemberId("123123");
        dto2.setMemberNick("发哈是");
        dto2.setStartTime("2021-04-12 00:00");
        dto2.setEndTime("2021-04-12 00:00");
        dto2.setDeliveryTime("2021-04-12 00:00");
        dto2.setDeliveryFlag(0);
        dto2.setUseTime("2021-04-12 00:00");
        dto2.setUseFlag(0);
        dto2.setCodeRecordId("9");
        dto2.setCreateTime("2021-04-12 00:00");
        dto2.setUpdateTime("2021-04-12 00:00");
        dto2.setDeleted(0);

        list.add(dto);
        //	list.add(dto2);
        return list;
    }

    public static Object _0904() {

        return null;
    }

    public static InviteInfoDTO _0905() {
        InviteInfoDTO dto = new InviteInfoDTO();
        dto.setId("123");
        dto.setInviterId("456");
        dto.setNickName("实时生2");
        dto.setHeadImage("www.baidu.com");
        dto.setInviterTime("2021-05-21 11:21:33");
        dto.setOperateTime("2021-05-21 11:44:33");
        dto.setPhone("18217637636");
        dto.setOperate(1);
        return dto;
    }

    public static Map<String, String> _0906() {
        Map<String, String> p = new HashMap<>();
        p.put("inviterId", "990");
        return p;
    }

    public static Map<String, String> _0907() {
        Map<String, String> params = new HashMap<>();
        params.put("current", "1");
        params.put("size", "10");
        return params;
    }

    public static OrderInfoEntityDTO _0908() {

        List<ExpressParcel> list = new ArrayList<>();

        ExpressParcel parcel = new ExpressParcel();
        parcel.setCompanyName("顺丰快递");
        parcel.setParcelNo("123456789");
        list.add(parcel);
        ExpressParcel parcel2 = new ExpressParcel();
        parcel2.setCompanyName("东方快递");
        parcel2.setParcelNo("987654");
        list.add(parcel2);

        OrderInfoEntityDTO dto = new OrderInfoEntityDTO();
        dto.setOrderId("123123");
        dto.setExpressParcels(list);
        dto.setSource("123");
        dto.setStatus("2");
        dto.setAddress("上海");
        dto.setUpdateTime("2021-05-20 17:09:06");

        return dto;
    }

    public static PrizeInfoDTO _0909() {
	PrizeInfoDTO dto = new PrizeInfoDTO();
	dto.setCustomerId("71864378982401");
	dto.setSortCols("id:des");
	dto.setCurrent(1);
	dto.setSize(2);
	return dto;
    }
}
